<script>on mouseUpballoonif the result is not empty thenballoon trueelseballoon falseend ifend mouseUpon mouseWithinballoon "Help button" & return & return ¬& "To turn Balloon help off, click this button."end mouseWithin</script>
</part>
<part>
<id>2</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>328</left>
<top>28</top>
<right>404</right>
<bottom>60</bottom>
</rect>
<style>transparent</style>
<showName> <false /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>22978</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>New Button</name>
<script>on mouseUpgo homeend mouseUpon mouseWithinballoon "Home button" & return & return ¬& "To go to the Home stack, click this button."end mouseWithin</script>
</part>
<part>
<id>6</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>328</left>
<top>108</top>
<right>404</right>
<bottom>140</bottom>
</rect>
<style>transparent</style>
<showName> <false /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>1007</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>New Button</name>
<script>on mouseUpopen report printing with template "Untitled Report"print cardclose printingend mouseUpon mouseWithinballoon "Print button" & return & return ¬& "To print the text on this card, click this button."end mouseWithin</script>
</part>
<part>
<id>7</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>336</left>
<top>176</top>
<right>404</right>
<bottom>236</bottom>
</rect>
<style>transparent</style>
<showName> <false /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>New Button</name>
<script>on mouseWithinballoon "This HyperCard stack contains the Balloon XCMD (V1.0.1)," ¬&& "written in Think C 5.0 by R. Geisler, 1992. The stack and the" ¬&& "XCMD are Freeware." & return & return ¬& "E-Mail: geisler@mpib-tuebingen.mpg.dbp.de"end mouseWithin</script>
</part>
<content>
<layer>background</layer>
<id>1</id>
<text><span class="style5">alloon XCMD</span><span class="style1">This external command allows you to add System 7 Balloon help to your HyperCard buttons and fields. Use the HyperCard Resource Mover or ResEdit to copy it to your own stacks.</span><span class="style2">Balloon XCMD Syntax:</span><span class="style1"></span><span class="style3">balloon [ </span><span class="style4">show</span><span class="style3"> | </span><span class="style4">helpString</span><span class="style3"> ]</span><span class="style1">where:</span><span class="style4">show</span><span class="style1"> is an expression that evaluates to </span><span class="style3">true</span><span class="style1"> or </span><span class="style3">false</span><span class="style1">.</span><span class="style4">helpString</span><span class="style1"> is an expression that evaluates to a string of up to 254 characters, including return characters, containing your help information.</span><span class="style2">Result Values:</span><span class="style1"></span><span class="style3">balloon help off</span><span class="style1">Balloon help has been switched off by the user.</span><span class="style3">balloon help unavailable</span><span class="style1">The Help Manager is not available. Probably a System version earlier than 7.0 is running.</span><span class="style2">Description</span><span class="style1">:The</span><span class="style3"> balloon </span><span class="style1">XCMD is a simple implementation of System 7 Balloon help for HyperCard stacks.Call </span><span class="style3">balloon </span><span class="style1">with a help string to show a standard help balloon containing the string at the mouse location (screen space permitting, it will appear to the upper right of the mouse pointer). A balloon is shown only if Balloon help is available and switched on, no previous balloon is visible and the mouse pointer is within the target of the current HyperCard message. The balloon is removed automatically when the mouse leaves the target. A </span><span class="style3">balloon</span><span class="style1"> call of this form should normally be made from a </span><span class="style3">mouseWithin</span><span class="style1"> handler.Call </span><span class="style3">balloon </span><span class="style1">without parameters to remove a help balloon.Call </span><span class="style3">balloon true</span><span class="style1"> or </span><span class="style3">balloons false</span><span class="style1"> to switch system-wide Balloon help on and off. (In HyperCard versions through 2.1 </span><span class="style3">doMenu</span><span class="style1"> does not work for the Help menu.)Independent of the parameters, a non-empty result value indicates that Balloon help is switched off or unavailable. In this case, </span><span class="style3">balloon</span><span class="style1"> has no visible effects, but should not do any harm, either.Known bug: When a Help balloon is shown and the mouse moves rapidly from one HyperCard object to another, </span><span class="style3">mouseExit</span><span class="style1"> and </span><span class="style3">mouseEnter </span><span class="style1">messages are occasionally lost.</span><span class="style3"></span><span class="style2">Examples</span><span class="style1">:</span><span class="style3">on mouseWithin -- show a help balloon balloon "Home button" & return & return ¬ & "To go to the Home stack, click this" ¬ && "button."end mouseWithinon mouseUp -- toggle Balloon help balloon -- test for Balloon help if the result is not empty then balloon true else balloon false end ifend mouseUp</span></text>